import request from '../http/request';

//登录、注册的逻辑

//注册信息
export const register = (data) => {
    return request({
        url: '/register/save',
        method: 'post',
        data
    })
}

export const getUserInfo = (phone) => {
    return request({
        url: '/register/info',
        method: 'get',
        params: { phone }
    })
}

export const getPhoneNumberByUsername = (name, password) => {
    return request({
      url: '/register/getphone',
      method: 'get',
      params: {
        name,
        password
      }
    });
  };
